package rm.mk.data;

import java.util.ArrayList;

public class City {

	private int cityNr;
	private ArrayList<Route> routes = new ArrayList<Route>();

	public City() {
	}

	public City(int cityNr) {
		this.cityNr = cityNr;
	}

	public City(int cityNr, Route... routes) {
		this.cityNr = cityNr;
		this.addRoutes(routes);
	}

	public int getCityNr() {
		return cityNr;
	}

	public void setCityNr(int cityNr) {
		this.cityNr = cityNr;
	}

	public ArrayList<Route> getRoutes() {
		return routes;
	}

	public void setRoutes(ArrayList<Route> routes) {
		this.routes = routes;
	}

	public void addRoutes(Route... routes) {
		for (Route r : routes)
			this.addRoute(r);
	}

	public void addRoute(Route route) {
		this.routes.add(route);
	}
}
